﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterAdmin.master" CodeFile="Permissao.aspx.cs" Inherits="AreaRestrita_Permissao" %>

<asp:Content ID="Content2" ContentPlaceHolderID="cphTitulo" runat="server">
    Permissão 
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphPagina" runat="server">
    <asp:ScriptManager ID="sm1" runat="server">
</asp:ScriptManager>
    <asp:UpdatePanel ID="upModelo" Visible="true" runat="server">
        <ContentTemplate> 
        <table> 
            <tr>
                <td>
                    Permissão
                </td>
                <td>
                <asp:TextBox ID="txtPermissao" Width="300px" runat="server"></asp:TextBox>
                   
                </td>
                <td colspan = "3">
                    <asp:Button ID="btnFiltrar" Text="Filtrar" runat="server" 
                        onclick="btnFiltrar_Click" /> 
                    &nbsp;
                    <asp:Button ID="btnNovo" Text="Novo" runat="server" onclick="btnNovo_Click" />
                </td>
            </tr>  
        </table>

        <table>
            <tr>
                <td>
                    <asp:GridView ID="gdvPermissao" EmptyDataText="Nenhum Modelo encontrado" 
                        CssClass="gdvPadrao" runat="server" EnableModelValidation="True" 
                         AutoGenerateColumns="False" onrowcommand="gdvPermissao_RowCommand" 
                        onrowdatabound="gdvPermissao_RowDataBound">
                        <Columns>
                            <asp:BoundField DataField="Descricao" ItemStyle-Width="300px" HeaderText="Descrição" />
                            <asp:TemplateField HeaderText="" ItemStyle-Width="30px">
                                <ItemTemplate>
                                    <asp:ImageButton ID="imgEditar" CommandName="Editar" ImageUrl="~/Imagens/Editar.png" runat="server" />
                                </ItemTemplate>
                                <ItemStyle Width="30px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="" ItemStyle-Width="30px">
                                <ItemTemplate>
                                    <asp:ImageButton ID="imgExcluir" CommandName="Excluir" ImageUrl="~/Imagens/Excluir.png" runat="server" />
                                </ItemTemplate>
                                <ItemStyle Width="30px" />
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
        </table>
        
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

